package com.kzj.common.exception;

public enum ExceptionEnum {

    DEFAULT("未命名异常",0,""),
    INNER_PARAM_EXCEPTION("内部参数异常",1,""),
    CONFIG_NOT_LOAD("配置文件未加载",2,""),
    CONFIG_PROPERTIES_MISS("配置属性缺失",3,""),
    RESOURCE_LOAD_FAIL("资源加载失败",4,"");

    private String msg;
    private int code;
    private String desc;

    ExceptionEnum(String msg,int code,String desc){
        this.msg=msg;
        this.code=code;
        this.desc=desc;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
